/*

TestSuite to test if the parser can handle the kinds of queries used by the app.
Queries used are only the distinct ones in terms of form.

*/
//ww
TestCase("JsSQLParserTest", function(){
	
	var tests = {} //a json object consisting of test cases (i.e., js functions)
	    ,data = CommonTestData.data();
		
	for(var index in data){	
		tests["test" + index.toString()] = function(query){
			return function(){
				SQLParser.parse(query);
			}
		}.apply(this, [data[index].query]);
	}
	
	return tests;
	
}());